home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11152 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  50 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.sprintlink.net!mv!usenet
  3. From: ENGR@GSSI.MV.COM (Michael Furman)
  4. Subject: Re: How can I switch off name-mangling in cpp-files?
  5. Message-ID: <Do6DvK.692@mv.mv.com>
  6. Mime-Version: 1.0
  7. Content-Type: Text/Plain; charset=US-ASCII
  8. Organization: GSSI
  9. Date: Tue, 12 Mar 1996 22:16:32 GMT
  10. References: <199603102256.a29227@m.maus.de>
  11. X-Newsreader: WinVN 0.99.7
  12. X-Nntp-Posting-Host: gssi.mv.com
  13.  
  14. In article <199603102256.a29227@m.maus.de>, Volker_Steinlein@m.maus.de 
  15. says...
  16. >
  17. >Hi all,
  18. >
  19. >I got a problem. I have a c-library (*.h and *.lib) and source code of this
  20. >library for an complete different os. The source is written in c++ and 
  21. should
  22. >be compiled with the header file of the existing c-library. The header file
  23. >contains only function prototypes and mustn't be modified.
  24. >
  25. >How can I stop name-mangling without loosing c++-features when I compile and
  26. >link the cpp-file?
  27.  
  28. The only way to turn off name mangling is to declare functions as C:
  29.  
  30.    extern "C"
  31.      {
  32.      // Function prototypes here 
  33.      }
  34.  
  35.  
  36. >
  37. >Thanks for your help
  38. >
  39. >Volker
  40.  
  41. -- 
  42. <<< If you received it by E-mail: it is a copy of post to the newsgroup >>>
  43. ---------------------------------------------------------------
  44. Michael Furman,                       (603)893-1109
  45. Geophysical Survey Systems, Inc.  fax:(603)889-3984
  46. 13 Klein Drive - P.O. Box 97          engr@gssi.mv.com 
  47. North Salem, NH 03073-0097            71543.1334@compuserve.com
  48. ---------------------------------------------------------------
  49.  
  50.